package cn.hdu.liang.typeinfo.toys;

public class GenericToyTest {
    public static void main(String[] args) throws IllegalAccessException, InstantiationException {
        Class<FancyToy> ftClass = FancyToy.class;
        FancyToy fancyToy = ftClass.newInstance();

        Class<? super FancyToy> up = ftClass.getSuperclass();
        System.out.println(up);

        //Class<Toy> up2 = ftClass.getSuperclass();
        Object obj = up.newInstance();
    }
}
